package com.rpc.server.client;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * ClientConsumeProvider
 * 消费方后置处理器
 * @author 春江花朝秋月夜
 * @since 2024/1/18 11:29
 */
@Configuration
public class ClientConsumeProvider implements InitializingBean, BeanPostProcessor, EnvironmentAware {
    @Override
    public void afterPropertiesSet() throws Exception {

    }

    @Override
    public void setEnvironment(Environment environment) {

    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        return BeanPostProcessor.super.postProcessAfterInitialization(bean, beanName);
    }
}
